home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / May 96 / Re MacApp to ODF conversion.3 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.2 KB  |  [TEXT/ttxt]

  1. Subject:     Re: MacApp to ODF conversion
  2. Sent:        5/6/96 5:24 AM
  3. Received:    5/6/96 8:55 AM
  4. From:        Serge Froment, sfroment@odyssee.net
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >Has anyone out there tried to convert a MacApp project to an ODF project?
  9. >Tips, opinions, suggestions, caveats, mistakes would be appreciated.
  10.  
  11. I have converted MacApp code to ODF. It was easier than I expected.
  12. Converting a project from MacApp to ODF is not obvious since turning an
  13. application into a suite of OpenDoc parts usually involves major design
  14. change. This is why I have converted classes, not the whole project. I have
  15. started writing an ODF part from scratch and converted only the MacApp
  16. classes I needed, one class at a time as I needed them, and tested them in
  17. the ODF part I was writing. So the resulting part is a mix of new code and
  18. ported code.
  19.  
  20. The biggest problem I encountered was strings: MacApp string indices are
  21. 1-based while ODF ones are 0-based. Porting code involving non-trivial
  22. string manipulation usually result in bugged code because it is easy to
  23. miss places where string indices calculation have to be changed.
  24.  
  25. Porting graphic operations is much easier.
  26.  
  27. Serge
  28.  
  29.